﻿using System.Web.Mvc;
using Calendar.Logic.ObjectModel.Authorization;

namespace Calendar.Web.Core
{
    public class RoleAuthorize : AuthorizeAttribute
    {
        public RoleAuthorize(params AppRole[] roles)
        {
            Roles = string.Join(", ", roles);
        }
    }
}